:root {
  --paper-color: #fdfdfd;
  --black-color: #000;
  --primary-color: #007bff;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
}

body {
  background-color: var(--paper-color);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

h1 {
  margin: 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--black-color) 20%, var(--primary-color));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 4rem;
  font-weight: 900;
  font-style: normal;
  margin-bottom: 3.25rem;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

button {
  border-radius: 0.5rem;
  border: 1px solid rgba(27, 31, 36, 0.15);
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  appearance: none;
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
  text-align: center;
  display: grid;
  grid-template-areas: "leadingIcon text trailingIcon";
  padding: 0.5rem 1.375rem;
  font-size: 1.25rem;
  box-shadow: rgba(27, 31, 36, 0.1) 0px 1px 0px;
  grid-area: text;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

#star {
  color: rgb(36, 41, 47);
  background-color: rgb(246, 248, 250);
}

#star:hover {
  background-color: rgb(243, 244, 246);
}

#refresh, #login, #generate, #download {
  color: rgb(255, 255, 255);
  background-color: rgb(45, 164, 78);
}

#refresh:hover, #login:hover, #generate:hover, #download:hover {
  background-color: rgb(44, 151, 75);
}

#generate {
  margin: 20px auto 0 auto;
}

button svg {
  fill: currentcolor;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.loading-bar {
  width: 8rem;
  height: 8rem;
  border: 5px solid rgb(243, 244, 246);
  border-top: 5px solid rgb(45, 164, 78);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  text-align: center;
  font-size: 1.25rem;
  line-height: 2.5rem;
  font-weight: 400;
  color: #333;
  margin: 2.5rem 0 0 0;
}

form {
  margin-top: 2.5rem;
  background: #fff;
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 0.7rem rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.7rem;
  width: 25rem;
  font-size: 1.25rem;
}

form img {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  margin: 0 auto;
}

form label {
  display: block;
  font-weight: bold;
}

form input, form select {
  padding: 0.75rem;
  margin-bottom: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

form input {
  width: calc(100% - 1.5rem);
}

form select {
  width: calc(100% + 2px);
}

@media screen and (max-width: 768px) {
  :root {
    font-size: 14px;
  }
}

@media screen and (max-width: 425px) {
  :root {
    font-size: 12px;
  }
}